package com.jindun.paper.ui.bag;

import java.util.List;

import com.jindun.common.ContextUtil;
import com.jindun.paper.model.Order;
import com.jindun.paper.model.Order.OrderType;
import com.jindun.paper.service.OrderService;

public class BagOrderListView extends OrderListView {
	
	private OrderService orderService =  (OrderService)ContextUtil.getBean(OrderService.class);

	@Override
	protected List<Order> loadOrders() {
		
		return orderService.findAll(OrderType.BAG.getCode());
	}

	@Override
	protected void delete(Order order) {
		this.orderService.delete(order.getId());
		
	}

}
